package com.ysd.lis.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ysd.common.Result;
import com.ysd.common.dto.OrganizationDTO;
import com.ysd.lis.entity.SysOrganization;
import com.ysd.lis.request.OrganizationPageParam;
import com.ysd.lis.vo.OrgLabUserVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * cold_chain.t_organization 服务类
 * </p>
 *
 * @author Peng
 * @since 2021-10-08
 */
public interface SysOrganizationService extends IService<SysOrganization> {

    Result findOrgAllList();

    Result addOrg(SysOrganization sysOrganization);

    Result findOrgById(String id);

    Result findOrgChildList(String orgId);

    Result findOrgNoParentList(String orgId, Integer type);

    Result setOrgParentIdList(List<Map> list);

    Result editOrg(SysOrganization sysOrganization);

    Result deleteOrg(SysOrganization sysOrganization);

    Result findOrganizationPageList(OrganizationPageParam company);

    Result findOrganizationList(OrganizationPageParam companyPage);

    Result findOrgTree();

    Result findOrgTreePaltform();

    Result deleteOrgOrDept(OrganizationPageParam companyPage);

    Result findOrgDeptTreeByOrgId(String orgId);

    Result addLabUser(OrgLabUserVo orgLabUserVo);
}
